myVar=abc
printf -v "${<ref>myVar}"